package com.htcms.dao;

import com.htcms.base.HibernateBaseDao;
import com.htcms.bean.Admin;
import com.htcms.bean.SmsSP;

public class SmsSPDAO extends HibernateBaseDao{
	public SmsSP getSpByUserId(String userId){
		String hql="from SmsSP sp where sp.userid=?";
		Object result=this.uniqueResult(hql,userId);
		if(null!=result)
			return (SmsSP)result;
		else
			return null;
	}
	
	public void saveSp(SmsSP sp){
		this.getHibernateTemplate().saveOrUpdate(sp);
	}
}
